def my_ip
  `ifconfig eth1`.split("\n")[1].match(/([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/)[1]
end

class WebColor

  def initialize
    @rgb = (1..3).to_a.map{rand 255}
  end

  def inc
    @rgb = @rgb.map{|ea| [255,ea+16].min}
  end

  def dec
    @rgb = @rgb.map{|ea| [0,ea-16].max}    
  end

  def to_s
    sprintf("#%02x%02x%02x", *@rgb)
  end

end
